package pe.com.upc.edu.rtt;

public class ClienteServicesSoapProxy implements pe.com.upc.edu.rtt.ClienteServicesSoap {
  private String _endpoint = null;
  private pe.com.upc.edu.rtt.ClienteServicesSoap clienteServicesSoap = null;
  
  public ClienteServicesSoapProxy() {
    _initClienteServicesSoapProxy();
  }
  
  public ClienteServicesSoapProxy(String endpoint) {
    _endpoint = endpoint;
    _initClienteServicesSoapProxy();
  }
  
  private void _initClienteServicesSoapProxy() {
    try {
      clienteServicesSoap = (new pe.com.upc.edu.rtt.ClienteServicesLocator()).getClienteServicesSoap();
      if (clienteServicesSoap != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)clienteServicesSoap)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)clienteServicesSoap)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (clienteServicesSoap != null)
      ((javax.xml.rpc.Stub)clienteServicesSoap)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public pe.com.upc.edu.rtt.ClienteServicesSoap getClienteServicesSoap() {
    if (clienteServicesSoap == null)
      _initClienteServicesSoapProxy();
    return clienteServicesSoap;
  }
  
  public pe.com.upc.edu.rtt.Cliente getCliente(java.lang.String uuid) throws java.rmi.RemoteException{
    if (clienteServicesSoap == null)
      _initClienteServicesSoapProxy();
    return clienteServicesSoap.getCliente(uuid);
  }
  
  public pe.com.upc.edu.rtt.Cliente crearNuevoCliente(java.lang.String uuid, java.lang.String dni, java.lang.String apellidos, java.lang.String nombres) throws java.rmi.RemoteException{
    if (clienteServicesSoap == null)
      _initClienteServicesSoapProxy();
    return clienteServicesSoap.crearNuevoCliente(uuid, dni, apellidos, nombres);
  }
  
  
}